package com.wzx.selfuse.service.impl;

import com.wzx.selfuse.entity.PlanPro;
import com.wzx.selfuse.mapper.Plan_IProMapper;
import com.wzx.selfuse.service.Plan_IProService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Liu Tenda
 * @date 2022年 12月06日 20:09:51
 * Introduction:
 */
@Service
public class Plan_IProServiceImpl implements Plan_IProService {

    @Autowired
    Plan_IProMapper plan_iProMapper;

    //获取产品列表
    @Override
    public List<PlanPro> getProList() {
        List<PlanPro> proList = plan_iProMapper.getProList();
        return proList;
    }

    @Override
    public int addPro(PlanPro planPro) {
        int i = plan_iProMapper.addPro(planPro);
        return i;
    }

    @Override
    public PlanPro getProByProNumber(String proNumber) {
        return plan_iProMapper.getProByProNumber(proNumber);
    }

    @Override
    public int deletePro(String proNumber) {
        return plan_iProMapper.deletePro(proNumber);
    }

    @Override
    public int editPro(PlanPro planPro) {
        return plan_iProMapper.editPro(planPro);
    }

    @Override
    public List<PlanPro> getProByProName(String proName) {
        return plan_iProMapper.getProByProName(proName);
    }

    @Override
    public List<PlanPro> getProByProKind(String proKind) {
        return plan_iProMapper.getProByProKind(proKind);
    }
}